import http from "@/util/request";

/**
 * 接受邀请
 * @param data
 * @returns {*}
 */
export function addGroup(data) {
    return http('/wx/acceptance/buying/addGroup',data,true,'POST')
}

/**
 * 退出团购
 * @returns {*}
 * @param orderId
 */
export function exitGroupApi(orderId) {
    return http(`/wx/acceptance/buying/quit/${orderId}`,{},true,'POST')
}

/**
 * 申请团购
 * @param orderId
 * @returns {*}
 */
export function acceptanceGroup(orderId) {
    return http(`/wx/acceptance/buying/add/${orderId}`,{},true,'GET')
}

/**
 * 获取用户邀请链接
 */
export function queryInviteCustomerList(){
    return http(`/wx/user/inviteCustomerList`,{},true,'GET')
}

/**
 * 获取团购列表
 */
export function queryGroupBuyList(){
    return http(`/wx/acceptance/buying/myGroupOrderList`,{},true,'GET')
}